<?php

namespace app\controller\command;

use app\result\SysStatisticsResult;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class SysStatistics extends Command
{
    protected function configure()
    {
        $this->setName('sys_statistics')
            ->setDescription('统计昨天的数据');
    }

    protected function execute(Input $input, Output $output)
    {
        bs_log(date('Y-m-d H:i:s'), 'SysStatistics', 'cmd.log');
        $res = (new SysStatisticsResult())->create();
        $output->writeln($res['msg']);
    }
}
